package com.ericom.dao.hibernate;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.ericom.dao.VoteDao;
import com.ericom.model.Vote;

@Repository("voteDao")
public class VoteDaoHibernate extends GenericDaoHibernate<Vote, Long> implements
		VoteDao {

	

	public VoteDaoHibernate() {
		super(Vote.class);
	}

	@Override
	public List<Vote> findByTitle(String title) {
		
		return this.getHibernateTemplate().find("from Vote where title=?",title);
	}

}
